<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<meta name="viewport" content="width=1000, initial-scale=1.0, maximum-scale=1.0">
<!-- Loading Bootstrap -->
<link href="./Public/Admin/Flat/dist/css/vendor/bootstrap.min.css" rel="stylesheet">
<!-- Loading Flat UI -->
<link href="./Public/Admin/Flat/dist/css/flat-ui.css" rel="stylesheet">
<link href="./Public/Admin/Flat/docs/assets/css/demo.css" rel="stylesheet">
<link rel="shortcut icon" href="./Public/Admin/Flat/img/favicon.ico">
<script type="text/javascript" src="./Public/Admin/js/jquery-1.7.2.min.js"></script>
</head>
<style>
	table thead th{text-align: center;}
	select{width: 80px;height: 31px;}
	input{text-indent: 10px;}
	button{float: left;}
</style>
<body>	
	<form action="" method="post">					
		<table class="table table-bordered table-hover" style="text-align: center;">
			<thead>
				<tr style="background: #364150;color: white;">
					<th width="10%" >货品ID</th>
						{{foreach from="$goodsAttryData" value="$v"}}
							<th width="15%">{{$v['trname']}}</th>
						{{endforeach}}
					<th style="width: 13%;">库存</th>
					<th style="width: 18%;">货号</th>
				</tr>
			</thead>
			<tr>
				<td>{{$oldGoodsList['glid']}}</td>
				{{foreach from="$goodsAttryData" value="$v"}}
				<td>
					<select name="combine[]">
						<option value="0">请选择</option>
				 		{{foreach from="$v['value']" value="$vv"}}
						<option value="{{$vv['gaid']}}" {{foreach from="$oldGoodsList['combine']" value="$v"}}{{if value="$vv['gaid'] == $v"}} selected{{endif}}{{endforeach}}
							>{{$vv['gvalue']}}</option>
						{{endforeach}}
					</select>
				</td>
				{{endforeach}}
				<td>
            		<input type="text" name="inventory" id="" value="{{$oldGoodsList['inventory']}}">
        		</td>
        		<td>
            		<input type="text" name="lnumber" id="" value="{{$oldGoodsList['lnumber']}}">
       			</td>
			</tr>
			<tr>
				<td colspan="5"> 
					<!--隐藏域-->
					<input type="hidden" name="glid" value="{{$_GET['glid']}}">					
					<input type="hidden" name="goods_gid" value="{{$oldGoodsList['goods_gid']}}">					
					<button type="submit" class="btn btn-primary ">修改货物清单</button>
				</td>
			</tr>
		</table>
	</form>
</body>
</html>
